Skip to content

reject non-ASCII Unicode digits in check-digit routines#380

Open
sahvx655-wq wants to merge 1 commit into
apache:masterfrom
sahvx655-wq:checkdigit-ascii-digits
Open

reject non-ASCII Unicode digits in check-digit routines#380
sahvx655-wq wants to merge 1 commit into
apache:masterfrom
sahvx655-wq:checkdigit-ascii-digits

Conversation

@sahvx655-wq
Copy link
Copy Markdown
Contributor

Character.getNumericValue/isDigit accept fullwidth and Arabic-Indic digits, so Unicode-digit codes pass isValid on EAN-13, Luhn, ISIN, CUSIP, SEDOL and Verhoeff; restrict each conversion site to ASCII.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant